package com.caocaog.market.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.caocaog.market.entity.ShopPromoHis;

import java.util.List;

/**
 * 商品促销历史信息
 *
 * @author chechen
 * @date 2021-11-20
 */
public interface ShopPromoHisService extends IService<ShopPromoHis> {

    IPage<ShopPromoHis> queryShopPromoHisPage(Page<ShopPromoHis> page, ShopPromoHis shopPromoHis);

    String addShopPromoHis(ShopPromoHis shopPromoHis);

    /**
     * 通过店铺id查询当前最新的所有商品促销信息（含历史id）
     * @param shopId
     * @return
     */
    List<ShopPromoHis> selectShopPromoHisByShopId(String shopId);

}
